package com.neusoft.neuiotms.dcam.fixed.model;

import javax.persistence.Entity;
import javax.persistence.ManyToOne;
import javax.persistence.Table;


import com.neusoft.bizcore.web.jpa.model.AbstractAuditModel;

import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

/**
 * 库存管理
 *
 * @author wys
 */
@Getter
@Setter
@ToString
@Entity
@Table(name = "neuiot_fixed_stock")
@org.hibernate.annotations.Table(appliesTo = "neuiot_fixed_stock", comment = "库存管理表")
public class Stock extends AbstractAuditModel {

    private static final long serialVersionUID = 1L;

    /** 资产分类*/
    @ManyToOne
    private SpareType spareType;

    /**规格型号*/
    private String specification;

    /** SN 序列号 */
    private String sn;

    /** 存放库房 */
    @ManyToOne
    private Storehouse storehouse;

    /** 单价 */
    private Double unitPrice;

    /**备品备件来源*/
    private String source;

    /**关联合同*/
    @ManyToOne
    private Contract contract;

    /*** 货品编号 */
    private String storckNumber;

    /** 库存状态 */
    private String status;


    /** 货品信息 */
//    @ManyToOne
//    private GoodsFile goodsFile;

    /** 批次信息 */
//    @Length(max = 100, message = "批次信息不能超过{max}位")
//    @Column(length = 100, nullable = false)
//    private String batch;

    /** 供应商 */
//    @ManyToOne
//    private Manufacturer manufacturer;

//    /** 数量 */
//    private Integer number;

//    /** 应用设备 */
//    @Column(length = 255, nullable = true)
//    private String applyAssetTypeName;

}
